<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <title>个人资料</title>
    <link href="/theme/hyzhongxin/css/geeteststyle.css" rel="stylesheet" type="text/css">
    <link href="/theme/hyzhongxin/css/personal_data.css" type="text/css" rel="stylesheet">
    <link href="/theme/hyzhongxin/css/newcommon_admin.css" type="text/css" rel="stylesheet">
    <link rel="stylesheet" href="/theme/hyzhongxin/css/style_https.css">
    <link rel="stylesheet" href="/theme/hyzhongxin/css/style_https.css">
    <link href="https://cdn.bootcss.com/bootstrap/4.1.0/css/bootstrap.min.css" rel="stylesheet">
    <script src="http://cdn.bootcss.com/jquery/2.2.4/jquery.js" charset="utf-8"></script>
    {{--<script src="/theme/hyzhongxin/js/jquery-1.8.3.min.js"></script>--}}
    <script src="https://cdn.bootcss.com/bootstrap/4.1.0/js/bootstrap.min.js"></script>
</head>
<body>
<style>
    ins{
        display: none !important;
    }
</style>
<!--left_column-->
@include('Home.left_column')
<!--left-column-end-->
<!--top-box-->
@include('Home.top_box')

<div class="left_margin" style="display: none;"> </div>

<div class="money_box_bg">
    <div class="courses_title left_margin">个人资料</div>

    <div class="content_bg content_bg1 left_margin" style="width: 1513px;">
        @if (session('msg'))
            <div class="alert alert-danger display-hide"  style="display: block;">
                <button class="close" data-close="alert"></button>
                <span> {{session('msg')}}</span>
            </div>
        @endif
        @if (count($errors) > 0)
            <div class="alert alert-danger">
                <h4 >有错误发生：</h4>
                <ul>
                    @foreach ($errors->all() as $error)
                        <li style="color: red"><i></i> {{ $error }}</li>
                    @endforeach
                </ul>
            </div>
        @endif
        <form method="post" action="{{route('users.update',Auth::id())}}" enctype="multipart/form-data">
            {{ csrf_field() }}
        <div class="head_portrait_box">
            <div class="head_portrait">
                @if(empty($user->portrait))
                    <img src="http://uc.tuwan.com/images/noavatar_1.jpg?random=1517193930">
                @else
                    <img src="{{$user->portrait}}"  width="100px" height="100px">
                @endif
            </div>
            <ul class="portrait_text">
                <li class="portrait_btn">
                    <input class="name_text pl10" value="上传头像"  style="background-color: #5ecfba;color: #ffffff;height:32px;line-height:32px; border: 0" type="button">
                    <input style="display: block" id="portrait01" class="file_01" type="file" name="portrait" accept="image/*">
                </li>
                <li>支持jpg、gif、png、或bmp格式的图片，文件必须小于1M</li>
            </ul>
            <div class="clearfix"></div>
        </div>
        <div class="game_ID">
            <label class="fl"><span>*</span>&nbsp;&nbsp;用&nbsp;户&nbsp;名：</label>
            <div style="margin-left: -3px;">
                {{$user->u_name}}
            </div>
            <div class="clearfix"></div>
        </div>
        <div class="game_ID">
            <label class="fl"><span>*</span>&nbsp;&nbsp;昵&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;称：</label>
            <div class="img_ts fl" style="margin-left: -3px;">
                <input name="username" id="name" placeholder="请输入昵称" value="{{old('username',$user->username)}}" etype="text">
                <i id="name_i"></i>
            </div>
            <div class="clearfix"></div>
        </div>
        <div class="game_ID">
            <label class="fl"><span>*</span>&nbsp;&nbsp;QQ&nbsp;&nbsp;&nbsp;号：</label>
            <div class="img_ts fl" style="margin-left: -3px;">
                <input name="qq" id="qq" placeholder="请输入QQ号，一定要输入啊！！！" value="{{old('qq',$user->qq)}}" name type="text">
                <i id="qq_i"></i>
            </div>
            <div class="clearfix"></div>
        </div>

        <div class="submit_box">
            <input value="提交修改" id="commit" class="problem" type="submit">
        </div>
        </form>
    </div>
</div>


<style type="text/css">
    #user_center_box{margin-top:0;}
    .content_center{background-color: #fff;margin:0 auto;width:52%;padding:5% 10% ;font-family: '微软雅黑';}
</style>
<SCRIPT>
    $(document).ready(function () {

    });
</SCRIPT>
</body>
</html>